module.exports = {
    lintOnSave: false,//关闭语法检查
    //代理跨域
    //方式一
    /*devServer: {
        proxy: 'http://localhost:5000'
    },*/
    //方式二
    devServer: {
        proxy: {
            '/api': {
                target: 'http://localhost:5000',
                pathRewrite: {'^/api' : ''},
                ws: true,
                changeOrigin: true,
            }
        }
    }
}